package cn.hengzhu.main_manager.repository.dao;

import cn.hengzhu.main_manager.repository.domain.CaseAdvertiseFile;
import cn.hengzhu.main_manager.repository.domain.CaseAdvertiseFileExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CaseAdvertiseFileMapper {
    /**
     *
     * @mbg.generated
     */
    long countByExample(CaseAdvertiseFileExample example);

    /**
     *
     * @mbg.generated
     */
    int deleteByExample(CaseAdvertiseFileExample example);

    /**
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer fileId);

    /**
     *
     * @mbg.generated
     */
    int insert(CaseAdvertiseFile record);

    /**
     *
     * @mbg.generated
     */
    int insertSelective(CaseAdvertiseFile record);

    /**
     *
     * @mbg.generated
     */
    List<CaseAdvertiseFile> selectByExample(CaseAdvertiseFileExample example);

    /**
     *
     * @mbg.generated
     */
    CaseAdvertiseFile selectByPrimaryKey(Integer fileId);

    /**
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") CaseAdvertiseFile record, @Param("example") CaseAdvertiseFileExample example);

    /**
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") CaseAdvertiseFile record, @Param("example") CaseAdvertiseFileExample example);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(CaseAdvertiseFile record);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(CaseAdvertiseFile record);

	List<CaseAdvertiseFile> selectByCompIdOrType(@Param("compId") Integer compId,@Param("type") Byte type);
}